//
// Created by 123 on 2025/1/10.
//
#include "vector"
#include "algorithm"
#include "iostream"

void test(){
    std::vector<int> v;
    v.push_back(1);
    v.push_back(2);
    v.push_back(2);
    v.push_back(3);

    std::vector<int>::iterator it = std::adjacent_find(v.begin(),v.end());
    if(it == v.end()){
        std::cout << "can not find " << std::endl;
    }else{
        std::cout << "repeate ele is " << *it << std::endl;
    }

}

int main154(){
    test();
    return 0;
}